<template>
  <div class="BreadCrumb">
    <el-breadcrumb class="box">
      <template v-for="item in breadCrumbs" :key="item.name">
        <el-breadcrumb-item :to="{ path: item.path }" class="fontStyle">
          {{ item.name }}
        </el-breadcrumb-item>
      </template>
    </el-breadcrumb>
  </div>
</template>

<script lang="ts">
import { defineComponent, PropType } from 'vue'
import { IBreadCurmb } from './types'
export default defineComponent({
  props: {
    breadCrumbs: {
      type: Array as PropType<IBreadCurmb[]>,
      default: () => []
    }
  },
  setup() {
    return {}
  }
})
</script>

<style scoped lang="less">
.BreadCrumb {
  .box {
    padding: 0 20px;
  }
  .fontStyle {
    font-size: 16px;
    // font-weight: bold;
  }
}
</style>
